import { IsEmail, IsNotEmpty, IsOptional, IsString } from "class-validator";

export class UserUpdateEmailDTO {
  @IsNotEmpty()
  @IsEmail()
  readonly email: string;

  @IsOptional()
  @IsString()
  readonly code?: string;
}
